import {createBrowserRouter} from 'react-router-dom'
import App from '../App'
import Login from '../pages/Login'
import Home from '../pages/Home'
const router=createBrowserRouter([
    {
        path:'/',
        element:<App></App>,

        children:[
            {
                path:'home',
                element:<Home></Home>
            },
            {
              index:true,
              element:<Home></Home>
            }
        ]
    },
    {
        path:'/login',
        element:<Login></Login>
    }
])
export default router